package com.kos.backend.service.impl.pk;

import com.kos.backend.consumer.WebSocketServer;
import com.kos.backend.service.pk.StartGameService;
import org.springframework.stereotype.Service;

@Service
public class StartGameServiceImpl implements StartGameService {
    @Override
    public String startGame(Integer aId, Integer asnakeId, Integer bId, Integer bsnakeId) {
        System.out.println("start game" + aId + "" + bId);
        WebSocketServer.startGame(aId,asnakeId,bId,bsnakeId);
        return "start game success";
    }
}
